package com.lzp.aop.service;

import com.lzp.aop.antion.MyAOP;

/**
 * @author : lzp
 * @version 1.0
 * @date : 2022/9/1 15:40
 * @apiNote : TODO
 */
@MyAOP
public interface AopTryCallOtherInterface extends TestService{
    default  String testMethod(TestService service){
        System.out.println("AopTryCallOtherInterface调用testMethod");
        return service.testMethod("这里是AopTryCallOtherInterface调用");
    }
    default String callOne(String str){
        System.out.println("尝试调用二号方法");
        return callTwo(str);
    }
    default String callTwo(String str){
        System.out.println("callTwo success:"+str);
        return "hello world";
    }
}
